package parser;

import server.SimpleDB;
import storage.transaction.Transaction;

public class DropIndexData extends ManipulateData {

	private String index_name;
	private String tbl_name;

	public DropIndexData(String in, String tn) {
		index_name = in; tbl_name = tn;
	}

	public String indexName() {
		return index_name;
	}

	public String tableName() {
		return tbl_name;
	}

	@Override
	public int execute(Transaction tx) {
		return SimpleDB.uplanner().executeDropIndex(this, tx);
	}

}
